package com.byxy.service.impl;

import com.byxy.mapper.FileMapper;
import com.byxy.po.Picture;
import com.byxy.service.FileService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FileServiceImpl implements FileService {

    @Resource
    private FileMapper fileMapper;

    @Override
    public int deleteByPrimaryKey(Picture key) {
        return fileMapper.deleteByPrimaryKey(key);
    }

    @Override
    public int insert(Picture record) {
        return fileMapper.insert(record);
    }

    @Override
    public Picture selectOne(Picture record) {
        return fileMapper.selectOne(record);
    }

    @Override
    public int updateByPrimaryKey(Picture record) {
        return fileMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Picture> select(Picture record) {
        return fileMapper.select(record);
    }
}
